package com.todod.base.module.base.dal.mysql.apieisc;

import java.util.*;

import com.todod.base.framework.common.pojo.PageResult;
import com.todod.base.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.todod.base.framework.mybatis.core.mapper.BaseMapperX;
import com.todod.base.module.base.dal.dataobject.apieisc.ApiEiscDO;
import org.apache.ibatis.annotations.Mapper;
import com.todod.base.module.base.controller.admin.apieisc.vo.*;

/**
 * EISC系统接口 Mapper
 *
 * @author 平台
 */
@Mapper
public interface ApiEiscMapper extends BaseMapperX<ApiEiscDO> {

    default PageResult<ApiEiscDO> selectPage(ApiEiscPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<ApiEiscDO>()
                .eqIfPresent(ApiEiscDO::getSerialNumber, reqVO.getSerialNumber())
                .likeIfPresent(ApiEiscDO::getApiName, reqVO.getApiName())
                .betweenIfPresent(ApiEiscDO::getCallTime, reqVO.getCallTime())
                .betweenIfPresent(ApiEiscDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(ApiEiscDO::getId));
    }

}